package com.sk.bilibili.adapter.pager.main;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

import com.sk.bilibili.adapter.pager.BaseFragmentAdapter;
import com.sk.bilibili.adapter.vlayout.main.home.shop.ImageAdapter;
import com.sk.bilibili.adapter.vlayout.main.home.shop.InfoAdapter;
import com.sk.bilibili.adapter.vlayout.main.home.shop.MagicAdapter;
import com.sk.bilibili.adapter.vlayout.main.home.shop.RecommendAdapter;
import com.sk.bilibili.utils.DataUtils;
import com.sk.bilibili.view.fragment.main.collect.FollowThemFragment;
import com.sk.bilibili.view.fragment.main.home.shop.CoverFragment;
import com.sk.bilibili.view.fragment.main.home.shop.GoodsFragment;
import com.sk.bilibili.view.fragment.member.FavoritesFragment;

public class ShopFragmentAdapter extends BaseFragmentAdapter {

    public ShopFragmentAdapter(@NonNull FragmentManager fm) {
        super(fm);
        initData();
    }

    @Override
    protected String[] getTitles() {
        return "推荐,魔力赏,美图,情报".split(",");
    }

    @Override
    protected Fragment[] getFragments() {
        Fragment[] fragments=new Fragment[4];
        fragments[0]=new GoodsFragment(RecommendAdapter.class,false);
        fragments[1]=new GoodsFragment(MagicAdapter.class,true);
        fragments[2]=new CoverFragment(ImageAdapter.class);
        fragments[3]=new CoverFragment(InfoAdapter.class);
        return fragments;
    }

}